<ui:composition 
    xmlns="http://www.w3.org/1999/xhtml" 
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:p="http://primefaces.org/ui"
    xmlns:h="http://java.sun.com/jsf/html">
    <style type="text/css">
        .mitreenode span {
            border: 0px;
        }
    </style>
    <h:form id="frmVerOpcionesDePerfil">
        <p:panel>
            <h:panelGrid columns="2" cellspacing="6">
                <h:outputText value="Perfil :" style="font-weight: bold;"/>
                <h:outputText value="#{perfilController.selectedPerfil.txtPerfil}"/>
            </h:panelGrid>
            <p:tree id="docTree" value="#{perfilController.visualizaTree}" var="per" 
                    style="width: 445px;height: 310px;overflow:hidden;" 
                    animate="true"> 
                <p:treeNode expandedIcon="ui-icon-folder-open" 
                            collapsedIcon="ui-icon-folder-collapsed" >  
                    <h:outputText value="#{per}" /> 
                </p:treeNode>
                <p:treeNode type="document" icon="ui-icon-document" styleClass="mitreenode">
                    <h:outputText value="#{per}" style="padding-right: 10px;"/>
                    <h:selectBooleanCheckbox value="#{(per.flgConsulta=='1')?true:false}" disabled="true"/>
                </p:treeNode> 
            </p:tree>
        </p:panel>
        <p:toolbar style="padding: 3px;">
            <p:toolbarGroup align="right">
                <p:commandButton value="Cerrar" icon="ui-icon-close" process="@this" 
                                 oncomplete="verOpcionesDePerfil.hide()"/>
            </p:toolbarGroup>
        </p:toolbar>
    </h:form>
</ui:composition>